/* 全局样式 */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* 内容卡片样式 */
.content-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

/* 表单样式增强 */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 按钮悬停效果 */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

/* 边框圆角 */
.rounded-custom {
  border-radius: 0.5rem;
}

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 侧边栏样式 */
.sidebar {
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  width: 250px;
  padding: 20px 0;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  background-color: #f8f9fa;
  transition: all 0.3s;
  z-index: 1000;
}

.sidebar-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  color: #495057;
  transition: all 0.3s;
  text-decoration: none;
}

.sidebar-item:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

.sidebar-item.active {
  background-color: #0d6efd;
  color: white;
}

.sidebar-item i {
  margin-right: 10px;
  width: 24px;
  text-align: center;
}

.page-container {
  margin-left: 0;
  transition: all 0.3s;
  width: 100%;
  min-height: calc(100vh - 56px);
}

.page-container.with-sidebar {
  margin-left: 250px;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .page-container.with-sidebar {
    margin-left: 0;
  }
}
